package com.dly.blog.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dly.blog.enums.FreeType;
import com.dly.blog.meta.MetaObject;
import lombok.Data;
import lombok.EqualsAndHashCode;
import nonapi.io.github.classgraph.json.Id;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

@TableName("blog_free_frequency")
@Data
@EqualsAndHashCode(callSuper = true)
public class FreeFrequency extends MetaObject implements Serializable {

    @Id
    private String id;

    /**
     * 发放的code
     */
    private String code;

    /**
     * 次数
     */
    private Integer frequency;

    /**
     * 是否使用
     */
    private Integer isUse;

    /**
     * 是否失效
     */
    private Integer isFailure;

    /**
     * 类型
     */
    private FreeType type;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
